package com.ss.android.crash.log;

import android.annotation.TargetApi;
import android.app.ActivityManager;
import android.os.Build;

public final class q {
    static class a {
        a(byte arg1) {
            this();
        }

        private a() {

        }

        public long a(ActivityManager.MemoryInfo arg3) {
            return 0;
        }
    }

    @TargetApi(value=16)
    static final class b extends a {
        b(byte arg1) {
            this();
        }

        private b() {
            super((byte) 0f);
        }

        public final long a(ActivityManager.MemoryInfo arg3) {
            return arg3.totalMem;
        }
    }

    private static a a;

    static {
        q.a = Build.VERSION.SDK_INT >= 16 ? new b((byte) 0) : new a((byte) 0);
    }

    public static long a(ActivityManager.MemoryInfo arg2) {
        return q.a.a(arg2);
    }
}

